<include file="Public/head" />
<include file="Public/menu" />
<include file="Orders/menu" />
<!-- 详情页 -->
<div class="indexBox">
    <script type="text/javascript">
        $(function(){
            $(".idTabs").idTabs();
        });
    </script>
    <div class="idTabs">
        <ul class="tab">
            <li><a href="#main">修改订单</a></li>
        </ul>
        <div class="items">
            <div id="main">
                <form action="{:U('Orders/doEdit')}" method="post">
                    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
                        <tbody>
                            <tr>
                                <th width="131">名称</th>
                                <th>内容</th>
                            </tr>
                            <tr>
                                <td align="right">下单日期</td>
                                <td>
                                    {$data.order_time|date="Y-m-d",###}
                                </td>
                            </tr>
                            <tr>
                                <td align="right">订单编号</td>
                                <td>
                                    {$data.oid}
                                </td>
                            </tr>
                            <tr>
                                <td align="right">买家</td>
                                <td>
                                    {$data.nickname}
                                </td>
                            </tr>
                            <switch name="data.type">
                                <case value="0">
                                    <tr>
                                        <td align="right">酒店房型</td>
                                        <td>
                                            {$data.hotel} - {$data.roomtype}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">入住日期</td>
                                        <td>
                                            <input name="checkin" value="{$data.checkin|date="Y-m-d",###}" placeholder="请输入日期" class="laydate-icon" onclick="laydate()">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">离开日期</td>
                                        <td>
                                            <input name="checkout" value="{$data.checkout|date="Y-m-d",###}" placeholder="请输入日期" class="laydate-icon" onclick="laydate()">
                                        </td>
                                    </tr>
                                </case>
                                <case value="1">
                                    <tr>
                                        <td align="right">景点</td>
                                        <td>
                                            {$data.senic}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">游园日期</td>
                                        <td>
                                            <input name="day" value="{$data.day|date="Y-m-d",###}" placeholder="请输入日期" class="laydate-icon" onclick="laydate()">
                                        </td>
                                    </tr>
                                </case>
                                <case value="2">
                                    <tr>
                                        <td align="right">酒店房型</td>
                                        <td>
                                            {$data.hotel} - {$data.roomtype}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">景点</td>
                                        <td>
                                            {$data.senic}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">客房人数</td>
                                        <td>
                                            {$data.rooms_nums}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">游园日期</td>
                                        <td>
                                            {$data.day|date="Y-m-d",###}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right">订购数量</td>
                                        <td>
                                            {$data.nums}
                                        </td>
                                    </tr>
                                </case>
                            </switch>
                            <tr>
                                <td align="right">订单金额</td>
                                <td>
                                    {$data.price}
                                </td>
                            </tr>
                            <tr>
                                <td align="right">支付状态</td>
                                <td>
                                    <input type="radio" name="status" value="1" <eq name="data.status" value="1">checked="checked"</eq> />已支付
                                    <input type="radio" name="status" value="0" <eq name="data.status" value="0">checked="checked"</eq> />未支付
                                </td>
                            </tr>
                            <tr>
                                <td align="right">评论状态</td>
                                <td>
                                    <switch name="data.comment_times">
                                        <case value="0">未评</case>
                                        <case value="1">已评</case>
                                        <case value="2">已回</case>
                                        <default />出错了
                                    </switch>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <input type="hidden" name="id" value="{$data.id}" />
                                    <input type="hidden" name="type" value="{$data.type}" />
                                    <input name="submit" class="btn" type="submit" value="提交" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>
<include file="Public/footer" />